﻿// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Module Name:
//
//  MockStorageItem.cs
//    
// Abstract:
//
//  Implements IStorageItem interface for unit testing
//  
//--

using System.Diagnostics.CodeAnalysis;
using Microsoft.Office.Interop.Outlook;
using System.Diagnostics;

namespace Microsoft.EnhancedReminders.OutlookAddIn.UnitTests
{
    /// <summary>
    /// Implements IStorageItem interface for unit testing
    /// </summary>
    public sealed class MockStorageItem : IStorageItem
    {
        private Attachments _attachments;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="attachments"></param>
        public MockStorageItem(Attachments attachments)
        {
            _attachments = attachments;
        }

        #region IStorageItem Members

        /// <summary>
        /// Implements IStorageItem.Attachments
        /// </summary>
        public Attachments Attachments
        {
            get 
            {
                return _attachments;
            }
        }

        /// <summary>
        /// Implements IStorageItem.Save
        /// </summary>
        public void Save()
        {
        }

        #endregion
    }
}
